<script type="text/javascript" src="/static/js/jquery.parser.js"></script>
<style type='text/css'>
	.addAccount_form{
		border: 1px solid #D9D9D9;
		padding: 15px;
		margin-left: 15px;
		margin-right: 15px;
		margin-top: 5px;
		margin-bottom: 5px;
	}
	
	#addAccount_form table tr td{
		vertical-align: middle;
		padding-left: 10px;
		padding: 8px;
	}
	
</style>

<script type="text/javascript">

function closeJbox() {
	$.jBox.close(true);
}

function submit_account(){
	
	$.ajax({
    	type:'POST',
        url:'/lottery/accounts/recharge_myself', 
        data: {value:$("#input7").val()},
        success:function(data,status){
        	$.jBox.tip('充值成功', 'success');
	       	$('#grid').datagrid('reload');
			$.jBox.close(true);
        },
        error:function (req, status, error){
        	$.jBox.tip('充值失败，请确认后重新操作  ' );
        	$('#grid').datagrid('reload');
			$.jBox.close(true);
        }
    }); 
	document.getElementById('okbtn').disabled = true;
	return true;
	}
	


</script>
<form id='addAccount_form' method="post">
<fieldset class="addAccount_form">
	<legend style="padding: 5px 10px 0;color: #6D6D6D;font-size: 20px;font-weight: bold;">
		公司账户信息
	</legend>
		<table>	
			<tr>
				<td><label id="lable1" for="input1" class="required" style="color: #6D6D6D;font-size: 15px;">额度帐号：</label></td>
				<td>
					<input type="text" id="input1" name="input1" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{account}}" readonly="true">
				</td>
				<td><label id="lable2" for="input2" class="required" style="color: #6D6D6D;font-size: 15px;">真实姓名：</label></td>
				<td><input type="text" id="input2" name="input2" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{name}}" readonly="true"></td>
			</tr>
			<tr>
				<td ><label id="lable3" for="input3" class="required" style="color: #6D6D6D;font-size: 15px;">身份证号：</label></td>
				<td ><input type="text" id="input3" name="input3" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{identify}}" readonly="true"></td>
				<td ><label id="lable4" for="input4" class="required" style="color: #6D6D6D;font-size: 15px;">账户余额：</label></td>
				<td ><input type="text" id="input4" name="input4" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{balance}}" readonly="true"></td>
		    </tr>
		    <tr>
				<td><label id="lable5" for="input5" class="required" style="color: #6D6D6D;font-size: 15px;">提成点数：</label></td>
				<td><input type="text" id="input5" name="input5" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{commissionRatio}}" readonly="true"></td>
				<td><label id="lable6" for="input6" class="required" style="color: #6D6D6D;font-size: 15px;">账户类型：</label></td>
				<td><input type="text" id="input6" name="input6" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="{{accountType}}" readonly="true"></td>
		    </tr>
		    
		</table>
</fieldset>
<br>
<fieldset class="addAccount_form">
	<legend style="padding: 5px 10px 0;color: #6D6D6D;font-size: 20px;font-weight: bold;">
		公司充值
	</legend>
		<table  align="center">
			<tr>
				<div id="requiredInputsMSG" style="display:none"><font color="#ff0000">请确保所有必填信息已经填入</font></div>
			</tr>

		    <tr >
				<td ><label id="lable7" for="input7" class="required" style="color: #6D6D6D;font-size: 15px;">请输入充值金额：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<td >
					<input type="text" id="input7" name="input7" style="width:308px;border: 1px solid #C8CACC;height: 20px;" maxlength="225"  class="required" value="">
				</td>
		    </tr>
		    <tr><td><br></td><td><br></td></tr>
		    <tr>
				<td>
				<input id="okbtn" type="button" value="充值" onclick="submit_account();" style="border: 1px solid #3580A9;text-shadow: 0px -1px 0px #2C6AA3;font-weight: bold;font-size:15px;padding: 5px 10px;border-radius: 3px 3px 3px 3px;box-shadow: 0px 1px 5px #B2B2B2;">
                   
		  		</td>
		  		<td>
		  		<input type="reset" value="重置" style="border: 1px solid #3580A9;text-shadow: 0px -1px 0px #2C6AA3;font-weight: bold;font-size:15px;padding: 5px 10px;border-radius: 3px 3px 3px 3px;box-shadow: 0px 1px 5px #B2B2B2;">
			    </td>
			</tr>
		</table>
</fieldset>
</form>
